package com.wk.pms.controller;

import com.wk.common.bean.Resp;
import com.wk.pms.entity.AttrAttrgroupRelation;
import com.wk.pms.service.AttrAttrgroupRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/attrattrgrouprelation")
public class AttrAttrgroupRelationController {

    @Autowired
    private AttrAttrgroupRelationService attrattrgrouprelationService;

    /**
     * 删除关联关系
     */
    @PostMapping("delete/attr")
    public Resp<String> deleteRelation(@RequestBody List<AttrAttrgroupRelation> relationEntities){
        attrattrgrouprelationService.deleteRelation(relationEntities);
        return Resp.ok("删除成功");
    }

}

